{% load codalab_tags %}

   
      <thead>
        <tr>
          <th width="250px">Submission</th>
          <th width="140px">Date</th>
          <th>Labels</th>
          <th>Dice</th>
          <th>Hausdorff</th>
          <th width="50px"></th>
          <th width="50px"></th>
        </tr>
      </thead>
      <tbody>
        {% for submission in my_active_phase_submissions %}
          {% for result in submission.result.all %}
          <tr id="{{submission.id}}-{{result.id}}">
            <td>
              <a href="#" data-dropdown="details_{{submission.id}}_{{result.id}}" data-options="is_hover:true">{{result.name}}</a>
              <ul id="details_{{submission.id}}_{{result.id}}" class="f-dropdown content tiny" data-dropdown-content>
                {% for score in result.scores.all %}
                  <li>{{score.label}} : {{score.value}} </li>
                {% endfor %}
              </ul>
            </td>
            <td>{{submission.submitted_at|date:"SHORT_DATETIME_FORMAT"}}</td>
            <td>{{result.notes}}</td>
            <td>
              {% for score in result.scores.all %}
                {% if score.label == "Dice" %}
                  {{ score.value }}
                {% endif %}
              {% endfor %}
            </td>
            <td>
              {% for score in result.scores.all %}
                {% if score.label == "Hausdorff Distance" %}
                  {{ score.value }}
                {% endif %}
              {% endfor %}
            </td>
            {% if result in active_phase.board.submissions %}
              <td class="status submitted"><i class="fi-check"></i></td>
            {% else %}
              <td class="status not_submitted"></td>
            {% endif %}
            <td><i class="fi-plus"></i></td>
          </tr>
          {% endfor %}
        {% endfor %}
      </tbody>
  
